from continuedfraction import cfroot

limit = 10000
print len([x for x in xrange(2, limit + 1) if len(cfroot(x)) %2 == 0])
